package cn.pengpeng.test

import java.io.{BufferedReader, FileReader}

/**
  * Created by root on 2019/1/24.
  */
object ReadWhile {
  def main(args: Array[String]): Unit = {
    val br: BufferedReader = new BufferedReader(new FileReader("d:/data/word.txt"))
    var line:String = null;
    while((line = br.readLine()) == () && line != null ){
      println(line == null)
      println(line)
    }
    println("结束了。。。。")

  }

}
